<div class="bg_tt_page">
	<div class="my">My Account</div>
	<div class="ac">Edit Profile</div>
</div>
<div class="center_page_afterlogin">
    <div class="col_left">
        <?php $this->renderPartial('//common/leftCustomer'); ?>
    </div>
    <div class="col_right">    	
    	
    	<div class=" m13l p12t p13b m13r bo_b_d yellow_color font14">
        	Name &amp; Billing Address
        </div>
        <div class="box_makepayment ">
        	<?php $form = $this->beginWidget('CActiveForm', array(
        		'id' => 'editprofile-form',
        		
        	)); ?>
        
            <p class=" p13b p5l">Please enter the following information.</p>
            
	        <label>First Name: </label>
	        <?php echo $form->textField($model, 'firstName', array('class' => 'box_makepayment_txt w325')); ?>
	        <br class="cb" />
	        
	        <label>Last Name:</label>
	        <?php echo $form->textField($model, 'lastName', array('class' => 'box_makepayment_txt w325')); ?>
	        <br class="cb" />
	        
	        <label>Preferred Language:</label>
	        <?php echo $form->dropDownList($model, 'preferLanguageID', CHtml::listData(TblLanguages::getAll(), 'id', 'name'), array('class' => 'w331')); ?>
	        <br class="cb" />
	        
	        <label>Address:</label>
	        <?php echo $form->textField($model, 'address', array('class' => 'box_makepayment_txt w325')); ?>
	        <br class="cb" />
	        
	        
	        <label>City:</label>
	        <?php echo $form->textField($model, 'city', array('class' => 'box_makepayment_txt w325')); ?>
	        <br class="cb" />
	        
	        <label>State: </label>
	        <?php echo $form->dropDownList($model, 'stateID', CHtml::listData(TblStateZip::getAll(), 'stateID', 'stateName'), array('class' => 'w331')); ?>
	        <br class="cb" />
	        
	        <label>Zip Code:</label>
	        <?php echo $form->textField($model, 'zipCode', array('class' => 'box_makepayment_txt w325')); ?>
	        <br class="cb" />
	       
	       <div class=" p5l p12t p13b bo_b_d yellow_color font14">
	        Email
	       </div>
	       <p class="p10t p10b p5l">Email is our primary means for contacting you.</p>
	       <label>Email:</label>
	       <?php echo $form->textField($model, 'email', array('class' => 'box_makepayment_txt w325')); ?>
	       <br class="cb" />
	       
	       <div class="p190l p10t">
	       	
	       	<?php 
		       	echo CHtml::link('Update', '#', array('class' => 'bt_submit float_left', 'onclick' => "document.forms[0].submit();"));
		       	
		       	echo Chtml::link('Cancel','#',  array('class' => 'bt_submit m10l float_left')); 
	       	?>
	       	<p class="cb"></p>
	       	
	       </div>
	       
	       <?php echo $form->errorSummary($model); ?>
	        
	       <?php $this->endWidget(); ?>
      </div><!-- #box_makepayment -->
      
      <!-- MESSAGE -->
    	<?php if(Yii::app()->user->hasFlash('editprofile-success')): ?>
		<div class="flash-success">
			<?php echo Yii::app()->user->getFlash('editprofile-success'); ?>
		</div>
		<?php endif; ?>
		
    	<?php if(Yii::app()->user->hasFlash('editprofile-error')): ?>
		<div class="flash-error">
			<?php echo Yii::app()->user->getFlash('editprofile-error'); ?>
		</div>
		<?php endif; ?>
		
    	<?php if(Yii::app()->user->hasFlash('editprofile-notice')): ?>
		<div class="flash-notice">
			<?php echo Yii::app()->user->getFlash('editprofile-notice'); ?>
		</div>
		<?php endif; ?>
		<?php
		    Yii::app()->clientScript->registerScript(
		       'myHideEffect',
		       '$(".flash-success").animate({opacity: 1.0}, 3000).fadeOut("slow");
		       	$(".flash-error").animate({opacity: 1.0}, 3000).fadeOut("slow");
		       	$(".flash-notice").animate({opacity: 1.0}, 3000).fadeOut("slow");
		       ',
		       CClientScript::POS_READY
		    );
		?>
    </div>
    <div class="cb"></div>
</div>
<div class="bottom_pages_afterlogin"></div>   